<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        // continue 关键字  跳出本次循环，，继续下面的循环
        // 作用：跳出本次循环， for while  do-while 
        for (var i = 1; i < 6; i++) {
            if (i == 3) {
                console.log('三年级，我跳级');
                continue; //本次循环结束
                console.log('continue');
            }
            console.log('我今年上' + i + '年级');
        }
        console.log('----------------------');
        // 1. 求1~100 之间， 除了能被7整除之外的整数和
        var sum = 0;
        for (var i = 0; i < 100; i++) {
            if (i % 7 == 0) {
                // 可以被7整除的数
                console.log(i);
                continue;
            }
            sum = sum + i;
        }
        console.log(sum);

    </script>
</head>

<body>

</body>

</html>